<template>
  <div class="tabBox">
    <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
      <el-tab-pane v-if="this.menuList.includes('reexamination')" label="预警管理" name="warning">
        <warning></warning>
      </el-tab-pane>
      <!-- <el-tab-pane v-if="this.menuList.includes('recheckTeam')" label="复检名单" name="doubleCheck">
        <double-check></double-check>
      </el-tab-pane> -->
    </el-tabs>
  </div>
</template>
<script>
import doubleCheck from './components/doubleCheck/index.vue'
import warning from './components/warning/index.vue'
export default {
  components: {
    doubleCheck,
    warning
  },
  data () {
    return {
      activeName: 'warning',
      activeList: ['warning', 'doubleCheck'],
      menuList: []
    }
  },
  created () {
    this.menuList = sessionStorage.getItem('list')
  },
  methods: {
    handleClick () {
      this.$cookies.set('activeName', this.activeName)
    }
  }
}
</script>
